/**
 * redux最为核心的管理对象 store
 */
//引入用于创建store和使用中间件的方法
import {createStore ,applyMiddleware} from 'redux'
//引入处理异步action的redux-thunk
import thunk from 'redux-thunk'
//引入redux调试工具
import {composeWithDevTools} from 'redux-devtools-extension'
//引入合并后的reducer
import reducer from './reducers'
//暴露store对象
export default createStore(reducer,composeWithDevTools(applyMiddleware(thunk)));